import Vue from "vue";
import Vuex from "vuex";
// import { sessionStorage } from "mp-storage";

// import createPersistedState from "vuex-persistedstate";

import modules from './modules';

Vue.use(Vuex);

let key = "";

export default new Vuex.Store({
  // plugins: [
  //   createPersistedState({
  //     storage: sessionStorage,
  //     key: "store_" + key,
  //   }),
  // ],

  modules: {
    ...modules,
  },
});

